//简写前
// class Person3 {
//   public name: string;
//   age: number; //默认是public
//   constructor(name: string, age: number) {
//     this.name = name;
//     this.age = age;
//   }
// }

class Person3 {
  constructor(public name: string, public age: number);
}
